package com.gitee.llj.entity.sys;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 模块表
 * </p>
 *
 * @author llj
 * @since 2018-03-16
 */
@TableName("sys_module")
public class SysModule extends Model<SysModule> {

    private static final long serialVersionUID = 1L;

    /**
     * 模块id
     */
    private String id;
    /**
     * 模块名称
     */
    private String moduleName;
    /**
     * 0 菜单 1 功能
     */
    private String moduleType;
    /**
     * 父模块ID
     */
    private String pid;
    /**
     * 排序
     */
    private Integer sn;
    /**
     * 模块链接URL
     */
    private String linkUrl;
    /**
     * 创建时间
     */
    private Date createTime;
    private String createUser;
    private Date modifyTime;
    private String modifyUser;
    /**
     * 是否删除 0 否 1 是
     */
    private String deleted;

    /**
     * 图标
     */
    private String icon;

    /**
     * 权限CODE
     */
    private String permissionCode;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getModuleType() {
        return moduleType;
    }

    public void setModuleType(String moduleType) {
        this.moduleType = moduleType;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public Integer getSn() {
        return sn;
    }

    public void setSn(Integer sn) {
        this.sn = sn;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    @Override
    public String toString() {
        return "SysModule{" +
        ", id=" + id +
        ", moduleName=" + moduleName +
        ", moduleType=" + moduleType +
        ", pid=" + pid +
        ", sn=" + sn +
        ", linkUrl=" + linkUrl +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", modifyTime=" + modifyTime +
        ", modifyUser=" + modifyUser +
        ", icon=" + icon +
        ", permissionCode=" + permissionCode +
        ", deleted=" + deleted +
        "}";
    }
}
